<%@ page language="java" contentType="text/html; charse=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>  
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${article.title }</title>
<jsp:include page="../public/header.jsp"/>
<link href="/public/css/article.css" rel="stylesheet" type="text/css" />

</head>
<body>
<jsp:include page="../public/nav.jsp"/>
	<div class="context">
    	<div class="box-left">
        	<div class="addr"><a href="#">攻略</a>><a href="#">张家界</a>><a href="#">${article.title }</a></div>
        	<div class="title">${article.title }</div>
            <div class="beizhu">
            	<ul>
                	<li>赞(${article.agrees })</li>
                    <li>发布时间：${article.createtime }</li>
            	</ul>
            </div>
            <div class="clearfix"></div>
            <hr />
            <div class="article">
            	${article.context }	
            </div>
            <div></div>
        </div>
        <div class="box-right">
        	<div class="weather"></div>
        	<div class="joker">
            	<div class="title">每日一笑:</div>
                <div class="tent">在地铁上，我给一大妈让了座，大妈高兴地和我攀谈，问：“孩子多大了？”我：“26岁了。”大妈羡慕地说：“你长得真年轻，看起来也就30出头，孩子都26了。”</div>
            </div>
           <!--相关推荐-->
            <div class="lol">
            	<ul>
               	<li><a href="/article/${articleList[0].id }.html">${articleList[0].title }</a></li>
                <li><a href="/article/${articleList[1].id }.html">${articleList[1].title}</a></li>
                <li><a href="/article/${articleList[2].id }.html">${articleList[2].title}</a></li>
                <li><a href="/article/${articleList[3].id }.html">${articleList[3].title}</a></li>
                </ul>
            </div>
            <!--作者信息-->
            <div class="author">
            	<div class="head">
                	<img class="" src="${user.head }" height="200" width="200">
                </div>
                <div class="name">名字:${user.name }</div>
                <div class="time">注册时间:<fmt:formatDate value="${user.createtime }" pattern="yyyy-MM-dd HH:mm:ss"/></div>
            </div>
        </div>
        
    </div>
	<div class="clearfix"></div>

<jsp:include page="../public/footer.jsp"/>
</body>
<jsp:include page="../public/footer2.jsp"/>
</html>
